Three-dimensional mapping using scanning electron microscope images

ABSTRACT

A method includes irradiating a surface of a sample, which is made-up of multiple types of materials, with a beam of primary electrons. Emitted electrons emitted from the irradiated sample are detected using multiple detectors that are positioned at respective different positions relative to the sample, so as to produce respective detector outputs. Calibration factors are computed to compensate for variations in emitted electron yield among the types of the materials, by identifying, for each material type, one or more horizontal regions on the surface that are made-up of the material type, and computing a calibration factor for the material type based on at least one of the detector outputs at the identified horizontal regions. The calibration factors are applied to the detector outputs. A three-dimensional topographical model of the surface is calculated based on the detector outputs to which the calibration factors are applied.

RELATED APPLICATIONS

This patent application is a continuation of U.S. patent application Ser. No. 13/365,238, filed Feb. 2, 2012, which is incorporated by reference herein.

TECHNICAL FIELD

Embodiments of the present invention relates generally to processing of Scanning Electron Microscope (SEM) images, and particularly to methods and systems for three-dimensional mapping using SEM images.

BACKGROUND

Scanning Electron Microscope (SEM) images are used in various mapping and imaging applications, such as for inspection of semiconductor wafers. Several techniques are known in the art for three-dimensional (3D) mapping of samples using SEM images. For example, a conventional technique for inspecting semiconductor devices utilizes multiple sets of measurement data obtained by a SEM to determine the dimensional parameters of a semiconductor device. The SEM collects each set of data from a different angular orientation with respect to the device. The dimensional parameters of the semiconductor device are determined by analyzing the relationship between the SEM inspection angle and the collected data sets.

Another conventional method includes a 3D shape measurement in which detection signals from respective semiconductor elements are sequentially switched in synchronization with a scanning frame of an electron beam on a sample. The detection signals from the respective semiconductor elements can be sequentially recorded in recording addresses in a frame memory that correspond to the respective semiconductor elements. After four electron beam scanning sessions, each image data for 3D shape measurement is recorded in the frame memory, and processed for 3D shape measurement.

As yet another example, Marinello et al., describes dimensional measurements performed with a SEM using 3D reconstruction of surface topography through stereo-photogrammetry, in “Critical Factors in SEM 3D Stereo Microscopy,” Measurement Science and Technology, volume 19, no. 6, 2008, which is incorporated herein by reference.

Some conventional SEM mapping techniques use multiple detectors. For example, Harada et al. describe multi-detector SEM measurements in “A New CDSEM Metrology Method for Thin Film Hardmasks Patterns using Multiple Detectors,” Photomask Japan 2010 (published in BACUS News 27:2, February, 2011).

SUMMARY

A method includes irradiating a surface of a sample, which is made-up of multiple types of materials, with a beam of primary electrons. Emitted electrons emitted from the irradiated sample are detected using multiple detectors that are positioned at respective different positions relative to the sample, so as to produce respective detector outputs. Calibration factors are computed to compensate for variations in emitted electron yield among the types of the materials, by identifying, for each material type, one or more horizontal regions on the surface that are made-up of the material type, and computing a calibration factor for the material type based on at least one of the detector outputs at the identified horizontal regions. The calibration factors are applied to the detector outputs. A three-dimensional topographical model of the surface is calculated based on the detector outputs to which the calibration factors are applied.

In some embodiments, the detectors include a top detector that is positioned perpendicularly above a plane of the sample, and two or more side detectors that are positioned at oblique angles relative to the plane of the sample. In an embodiment, identifying the horizontal regions includes segmenting the surface into multiple segments made-up of the respective types of the materials, and identifying one or more of the horizontal regions within each of the segments.

In one embodiment, calculating the three-dimensional topographical model includes estimating height gradients at multiple points on the surface, and integrating the height gradients to produce the three-dimensional topographical model. Estimating the height gradients may include defining, for a given point on the surface, a set of equations that express the detector outputs as a function of respective reflectance functions, and deriving a height gradient at the given point by solving the set of the equations. In an embodiment, the method includes evaluating a reflectance function of a given detector by integrating an angular distribution of the emitted electron yield over a range of angles captured by the given detector. Estimating the height gradients may include resolving an ambiguity in a component of the height gradients by applying a criterion that requires an integral of the height gradients over a closed loop path on the surface to be zero.

In some embodiments, applying the calibration factors includes normalizing a reflectance function for a given detector, which is estimated at a point on the surface that is made-up of a material type, using a calibration factor computed for the material type. In an embodiment, the detectors include a top detector positioned perpendicularly above a plane of the sample, and four side detectors positioned at oblique angles relative to the plane of the sample, detecting the emitted electrons includes combining the detector outputs of selected pairs of the side detectors, and calculating the three-dimensional topographical model includes computing the model based on the combined detector outputs.

There is additionally provided, in accordance with an embodiment of the present invention, an apparatus including an electron source, multiple detectors and a processor. The electron source is configured to irradiate a surface of a sample, which is made-up of multiple types of materials, with a beam of primary electrons. The detectors are positioned at respective different positions relative to the sample and are configured to detect emitted electrons that are emitted from the irradiated sample, so as to produce respective detector outputs. The processor is configured to compute calibration factors to compensate for variations in emitted electron yield among the types of the materials by identifying, for each material type, one or more horizontal regions on the surface that are made-up of the material type, and computing a calibration factor for the material type based on at least one of the detector outputs at the identified horizontal regions, to apply the calibration factors to the detector outputs, and to calculate a three-dimensional topographical model of the surface based on the detector outputs to which the calibration factors are applied.

There is also provided, in accordance with an embodiment of the present invention, an apparatus including an interface and a processor. The interface is configured to receive multiple detector outputs from respective detectors positioned at respective different positions relative to a sample, which is made-up of multiple types of materials, wherein the detector outputs are indicative of emitted electrons that are emitted from the sample in response to irradiation of the sample by a beam of primary electrons. The processor is configured to compute calibration factors to compensate for variations in emitted electron yield among the types of the materials by identifying, for each material type, one or more horizontal regions on the surface that are made-up of the material type, and computing a calibration factor for the material type based on at least one of the detector outputs at the identified horizontal regions, to apply the calibration factors to the detector outputs, and to calculate a three-dimensional topographical model of the surface based on the detector outputs to which the calibration factors are applied.

There is further provided, in accordance with an embodiment of the present invention, a computer software product, the product including a tangible non-transitory computer-readable medium, in which program instructions are stored, which instructions, when read by a computer, cause the computer to receive multiple detector outputs from respective detectors positioned at respective different positions relative to a sample, which is made-up of multiple types of materials, wherein the detector outputs are indicative of emitted electrons that are emitted from the sample in response to irradiation of the sample by a beam of primary electrons, to compute calibration factors to compensate for variations in emitted electron yield among the types of the materials by identifying, for each material type, one or more horizontal regions on the surface that are made-up of the material type, and computing a calibration factor for the material type based on at least one of the detector outputs at the identified horizontal regions, to apply the calibration factors to the detector outputs, and to calculate a three-dimensional topographical model of the surface based on the detector outputs to which the calibration factors are applied.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention will be more fully understood from the following detailed description of the embodiments thereof, taken together with the drawings in which:

FIG. 1 is a block diagram that schematically illustrates a system for three-dimensional (3D) mapping of samples, in accordance with an embodiment of the present invention;

FIG. 2 is a diagram that schematically illustrates a detector array, in accordance with an alternative embodiment of the present invention;

FIGS. 3 and 4 are diagrams showing geometrical conventions used in describing embodiments of the present invention;

FIG. 5 is a graph showing functions used in calculating a height gradient map, in accordance with an embodiment of the present invention; and

FIGS. 6 and 7 are flow charts that schematically illustrate methods for 3D mapping of samples, in accordance with embodiments of the present invention.

FIG. 8 is a block diagram illustrating one embodiment of a computer system, according to an embodiment.

DETAILED DESCRIPTION Overview

Embodiments of the present invention provide methods and systems for calculating a three-dimensional (3D) topographical model of a sample surface from multiple Scanning Electron Microscope (SEM) images of the sample, captured by multiple detectors. In particular, a disclosed calibration process prevents distortion of the 3D model when the sample surface is made-up of multiple types of materials.

In some embodiments, the sample is irradiated with a beam of primary electrons. Multiple detectors, which are positioned at different positions relative to the sample, detect secondary and backscattered electrons that are emitted from the irradiated sample. For example, the detectors may comprise a top detector that is positioned directly above the sample, plus two or more side detectors.

Each detector produces a respective detector output that is indicative of the yield of secondary electrons captured by the detector. A processor reconstructs a 3D topographical model of the sample by processing the multiple detector outputs. Typically, the processor estimates surface height gradients across the sample, and then integrates the gradients to produce the 3D topographical model.

In many practical applications, the sample surface is made-up of multiple types of materials. Unless accounted for, the differences in material types may distort the 3D reconstruction, because the yield of secondary electrons in a particular direction depends not only on the surface topography but also on its material composition.

In one embodiment, the processor computes calibration factors to compensate for the variations in secondary electron yield among the different material types. The processor applies the calibration factors to the detector outputs in calculating the 3D topographical model of the surface. In an example embodiment, the processor identifies, for each material type, one or more regions of the surface that are substantially horizontal. The processor performs reference yield measurements for the different material types at the horizontal regions, and uses these measurements to compute the calibration factors. The processor then applies these calibration factors to the outputs of the detectors, produced in other regions of the sample. As a result, the 3D topographical model is unaffected by the different material types of the sample surface.

The methods and systems described herein produce highly-accurate 3D models of samples, irrespective of the various material types that may be present on the sample surface. The disclosed techniques can be used in a variety of applications that examine samples having multiple materials, such as in Critical Dimension (CD) measurements, Defect Review (DR) and Automatic Defect Classification (ADC) of semiconductor wafers.

System Description

FIG. 1 is a block diagram that schematically illustrates a Scanning Electron Microscope (SEM) system 20 for three-dimensional (3D) mapping, in accordance with an embodiment of the present invention. In the present example, system 20 comprises a scanning unit 21 composed of, inter-alia, a SEM column system (not shown), detection system (not shown) and a handling system (not shown) for handling samples, scanning the samples using SEM and detecting signals indicative of, e.g., the shape, design, material and other features of the samples.

System 20 further comprises an image processing unit 23 that processes digital images that are produced by detectors in scanning unit 21. As will be explained below, however, this sort of partitioning is not mandatory, and the functions of system 20 can be implemented in a single unit or partitioned among multiple units as appropriate.

System 20 can be used in various applications, such as in Critical Dimension (CD) metrology, Defect Review (DR) or any other suitable application. In the embodiments described herein, the samples mapped by system 20 comprise semiconductor wafers. Alternatively, however, system 20 can be used for 3D mapping of any other suitable type of sample, such as semiconductor masks and reticles, flat display panels, solar panels and more.

Scanning unit 21 in system 20 scans a sample 22, which has a certain height profile or surface topography. For example, the sample may comprise a patterned semiconductor wafer on which electronic components, conductors and other elements are disposed. Unit 21 irradiates sample 22 using a beam of electrons, detects secondary electrons that are emitted from the sample in response to the irradiation, and uses the secondary electron detection to generate a 3D model of the sample surface using methods that are described in detail below.

Unit 21 in the present example comprises an electron source 24, which irradiates sample 22 with a beam of Primary Electrons (PE). Typically, the PE beam irradiates a certain point on the sample surface at any given time, and the beam scans the sample, e.g., in a raster pattern. In response to irradiation by the PE, Secondary Electrons (SE) are emitted from the irradiated point on the sample. The SE are emitted in various angles and are detected by a detector array 28.

In the present embodiment, array 28 comprises a top detector 32A and two side detectors 32B and 32C respectively denoted D1 and D2. The top detector is positioned perpendicularly above the plane of the sample, whereas the side detectors are positioned at oblique angles relative to the sample plane. An alternative detector configuration having four side detectors is shown in FIG. 2 below. An example technique of manipulating the outputs of the four side detectors is shown in FIG. 7 below. (Sample 22, electron source 24 and array 28 are shown in the figure in a side view. The configuration of detectors 32A . . . 32C in array 28, however, is shown in a top view for the sake of clarity.)

Each detector captures the SE in a certain range of angles relative to the irradiation point. In the example of FIG. 1, top detector 32A captures the SE that are emitted within a certain conical sector whose vertex is the irradiation point. Each of side detectors 32B and 32C captures the SE in a respective, different angular and energy sector.

Typically, the top detector is used for segmenting the image of the sample surface into regions of different material compositions, as will be explained further below. The top detector is best suited for this task since it is highly sensitive to material contrast, as opposed to the side detectors that are more sensitive to topography contrast. Unlike oblique collection of SE, in normal collection of SE (as performed by the top detector) each point in the collected image is accurately indicative of a single irradiated point of the sample surface and less affected by contributions from the surroundings of the irradiated point.

Thus, when analyzing the output of the top detector, intensity differences that are not associated with edges of patterns are typically indicative of material composition differences. The disclosed techniques thus generate material-related information and use this information for the generation of a 3D model, e.g., height map, of a sample. The material-related information is generated by processing signals produced by the top detector. Edge information is typically disregarded when performing material segmentation. Nevertheless, in alternative embodiments, the top detector may also be used for other purposes.

In one example embodiment, electron source 24 comprises an electron gun, and each of detectors 32A . . . 32C comprises a combination of a scintillator and a Photo-Multiplier Tube (PMT). Detector array 28 is positioned e.g. 120 mm above the sample, the diameter of top detector 32A is e.g. on the order of 14 mm, and the external diameter of side detectors 32B and 32C is e.g. on the order of 25 mm These implementation details are given, however, purely by way of example. In alternative embodiments any other suitable configuration can be used. Typically, each detector captures the SE in a certain respective range of angles and energies, determined by the geometry.

Each detector generates a signal that depends on the yield of secondary electrons within the angular sector captured by the detector. As the PE beam scans the sample, each detector generates a signal that depends, as a function of time, on the SE yield within its respective angular sector from the currently-irradiated point on the sample.

In the example of FIG. 1, image processing unit 23 produces a 3D model (e.g., height map) of the surface of sample 22, based on the signals generated by detectors 32A . . . 32C. Unit 23 comprises an interface 37 that receives the signals produced by the detectors, and a processor 38 that carries out the mapping methods described herein. In particular, processor 38 calibrates the signals produced by the detectors such that the 3D model is unaffected by differences in material composition of the sample surface. Although the embodiments described herein refer mainly to sample surfaces having two different material types, the disclosed techniques can be used for mapping samples whose surfaces are made-up of any desired number of material types.

In some embodiments, unit 23 comprises a storage device 39 for storing digital representations of the detector outputs, the resulting height map, and/or any other suitable information. Typically, processor 38 comprises a general-purpose computer, which is programmed in software to carry out the functions described herein. The software may be downloaded to the computer in electronic form, over a network, for example, or it may, alternatively or additionally, be provided and/or stored on non-transitory tangible media, such as magnetic, optical, or electronic memory.

FIG. 2 is a diagram that schematically illustrates a detector array, in accordance with an alternative embodiment of the present invention. In the present example, the array comprises a top detector and four quadrant side detectors denoted D1 . . . D4. The array of FIG. 2 can be used instead of array 28 in system 20. Further alternatively, system 20 may comprise any other suitable number of detectors arranged in any other suitable geometrical configuration. An example method of manipulating the outputs of detectors D1 . . . D4 is described in FIG. 7 below.

The system configuration of FIG. 1 above is an example configuration. In alternative embodiments, system 20 can be implemented in any other suitable configuration. For example, the disclosed embodiments refer to configurations having two or four side detectors. The disclosed techniques, however, are not limited to such configurations, and alternative embodiments may use any other suitable number of side detectors.

As another example, the disclosed techniques may be performed “on-tool,” i.e., by image processing unit 23 of system 20. In these embodiments, processor 38 carries out the disclosed mapping techniques, possibly along with other image processing functions of system 20. In alternative embodiments, the disclosed techniques can be carried out by a separate, dedicated system or processor. System elements that are not mandatory for understanding of the disclosed techniques have been omitted from the figure for the sake of clarity.

Geometrical Conventions

FIG. 3 is a diagram showing the geometrical conventions that are used in the subsequent description. The particular geometrical notation used herein is in no way limiting, and is used purely for the sake of conceptual clarity.

Sample 22 is positioned in a certain plane relative to the x, y and z axes. A vector n marks the normal to this plane. In other words, vector n is perpendicular to sample 22. The inclination of the sample with respect to the x-y plane, i.e., the angle between n and the z axis, is denoted 8. The origin of the coordinate system (x=y=z=0) marks the point at which the sample is irradiated with the PE beam at a given time. The beam irradiates the sample along the z axis, from top to bottom.

As a result of the irradiation, SE are emitted from the sample in various directions. The yield y of SE depends on the tilt angle θ, typically in accordance with y=y(cos(θ)). The velocity vectors of the SE, denoted v, are typically distributed in accordance with Lambert's law, i.e., p∝cos(φ), wherein φ denotes the angle between v and n.

3D Reconstruction of Height Profile Based on Multiple Detector Signals

Let H denote the height profile of sample 22, i.e., the height of the wafer surface as a function of location on the wafer. The signal level produced by the ith detector, denoted Ei, depends on the gradient of the height profile, and on the relative direction between the detector and the irradiation point. We can write:

E _(i) =k _(i) ·Y ₀ ·R _(i)( g ,{ d ₁ , d ₂ , . . . })  [1]

wherein g denotes the gradient of the height profile g=vH, and d_(l) denotes the vector from the irradiation point to the l^(th) detector. R_(i) denotes a reflectance function, Y₀ denotes the total SE yield from a horizontal surface, and k denotes a machine-dependent constant.

For the case of two side detectors, the signals produced by the detectors for a given irradiation point can be written as:

E ₁ =E ₁( g , d ₁ , d ₂ ),E ₂ =E ₂( g , d ₁ , d ₂ )  [2]

Once measured values of E1 and E2 are available from the detectors, this equation system can be solved to derive the two components of the height gradient g at the irradiation point. For a different number of detectors, a similar equation system can be defined and solved.

In some embodiments, processor 38 accepts the measured signal levels Ei from the detectors, and solves equation system [2] to derive the height gradient g. System 20 repeats this process for multiple irradiation points on sample 22, so as to produce a height gradient map of the sample. Then, processor 38 reconstructs the height profile H of the sample from the height gradient map, by implementing any suitable reconstruction method. Typically, processor 38 reconstructs the height profile by integrating the height gradient map in two dimensions.

The reflectance function R_(i) of the i^(th) detector can be written as:

R _(i)( g , d )=y(| g |)·η_(i)( g , d ₁ , d ₂ )  [3]

wherein y denotes the total relative SE yield, and ηi denotes the fraction of SE captured by the ith detector. The term y(|g|) in Equation [3] is common to all detectors. The terms η_(i)( g, d₁ , d₂ ) indicate the relative distribution of captured SE among the different detectors.

In various embodiments, processor 38 may use various known models of dependency of y on θ. In one example embodiment, processor 38 uses an inverse cosine dependence, i.e.,

$y = {\frac{1}{\cos \; \theta}.}$

In another embodiment, processor 38 uses the dependence y=(cosθ)^(−α). In yet another embodiment, processor 38 uses the dependence

$y = {\frac{\xi - {\cos \; \theta}}{\left\lbrack {1 + {{\left( {\xi - 2} \right) \cdot \cos}\; \theta}} \right\rbrack}.}$

Further alternatively, processor 38 may use any other suitable dependence of y on θ. Since y=y(cos(θ)), the term y(|g|) can be written as y(|g|)−y(√{square root over (1+|g|²)}).

In some embodiments, processor 38 computes each ηi term in the reflectance function of Equation [3] by integrating the Lambert distribution function over the angular sector (in φ/ψ polar coordinates) captured by the ith detector.

FIG. 4 is a diagram showing the geometrical notation used in integrating the Lambert distribution function, in accordance with an example embodiment of the present invention. In this representation, a plane 44 passes through the origin (the irradiation point) and is positioned symmetrically with respect to detectors D1 and D2. In other words, plane 44 passes through the origin and is orthogonal to the line connecting detectors D1 and D2. The subspace that falls on the same side of plane 44 as detector D1 is marked Ω1, and the subspace that falls on the same side of plane 44 as detector D2 is marked Ω2.

A contour 40 marks the Lambertian that represents the spatial distribution of secondary electron yield. A contour 52 marks the intersection of Lambertian 40 and plane 44. Angle 2ω denotes the apex angle of the conical sector that is captured by top detector 32A, i.e., a fixed physical property of system 20. A contour 48 marks a dome that is defined by the intersection of this conical sector and Lambertian 40. The part of dome 48 that falls on the D1 side of plane 44 is denoted T1, and the part of dome 48 that falls on the D2 side of plane 44 is denoted T2.

As can be seen from these definitions, integrating the Lambert distribution function over the dome (i.e., over the interior of contour 48) gives the secondary electron yield that is captured by the top detector. Thus, η1 and η2 can be written as:

η₁=∫∫_(Ω) ₁ _(−T) ₁ sin φ cos φ·dφdψ

η₂=∫∫_(Ω) ₂ _(−T) ₂ sin φ cos φ·dφdψ  [4]

Typically, processor 38 calculates the integrals of Equation [4] numerically, since there are usually no closed-forms expressions for these integrals. Having calculated the reflectance function Ri of Equation [3] above, processor 38 may solve Equation [3] to derive the height gradient map g.

Calibration of 3D Mapping to Account for Surface Material

Up to this point, the above-described process did not take into account differences in material composition across the surface of sample 22. In many practical scenarios, however, the surface of sample 22 comprises different features or structures that are made of different materials. For example, some regions of the surface may comprise substrate material such as Silicon, while other regions may comprise metallic conductors, other semiconductor materials or any other suitable material.

As can be appreciated, the yield of secondary electrons in a particular direction depends both on the height gradient and on the material composition at the irradiation point. Consequently, signals E_(i) produced by the detectors of system 20 depend on these two factors, as well. Unless accounted for, differences in material composition may distort the estimation of the height gradient map g, and therefore distort the 3D model of the sample calculated by system 20.

In some embodiments of the present invention, processor 38 carries out a calibration process that factors-out the material composition of the sample surface. The disclosed calibration process distinguishes between the two factors affecting the SE yield—surface topography and surface material. When using this calibration process, the resulting 3D model of sample 22 is substantially unaffected by material composition differences, and therefore better reproduces the sample surface topography.

The signal produced by the ith detector, Ei, is defined by Equation [1] above. The term R₁( g,{ d₁ , d₂ , . . . }) in Equation [1] depends only on the surface topography. When the sample surface comprises different materials, however, the term k_(i)·Y₀ in Equation [1] is unknown a-priori, and may vary from one irradiation point to another, since Y0 depends on the type of material.

In some embodiments, processor 38 solves this problem by calibrating the reflectance function Ri for a given irradiation point to account for the actual material at that point. For a perfectly horizontal plane, we can write:

y=1, η_(i)=η_(H)  [5]

wherein ηH denotes the fraction of SE captured from a horizontal plane—a constant that depends on the detector geometry. The signal produced by the ith detector in response to irradiating a horizontal plane is thus given by:

E _(iH) =k _(i) ·Y ₀·η_(H)  [6]

Processor 38 may obtain EiH, for example, by choosing a reference irradiation point on sample 22 that is known to be horizontal ( g=0), and measuring the detector signals when this point is irradiated. Having obtained E_(iH), processor 38 may derive k_(i)·Y₀ from Equation [6]. This derivation gives the value of k_(i)·Y₀ for the specific material at the reference (horizontal) irradiation point. Thus, the process of choosing reference irradiation points in the images and deriving E_(iH) should typically be repeated for each type of material that is present on the sample surface.

When later measuring a given irradiation point, processor 38 normalizes the reflectance function Ri with the EiH value that is applicable to the type of material at the given irradiation point:

$\begin{matrix} {R_{i} = {\frac{E_{i}}{E_{iH}} \cdot \eta_{H}}} & \lbrack 7\rbrack \end{matrix}$

Since both Ei and EiH depend on the type of material, the normalized Ri depends only on surface topography and not on material. From the normalized reflectance functions R_(i), processor 38 is able to derive the height gradient g at the irradiation point. This derived value of g is independent of material type. The description that follows explains an example scheme of deriving g from R_(i).

Thus, in the present context, the measured reference EiH values for the different material types are regarded as calibration factors that processor 38 applies to the detector outputs in computing the 3D topographical model of the sample surface. In alternative embodiment, processor 38 may compute and apply any other suitable kind of calibration factors that compensate for the differences in secondary electron yield of different materials.

It can be shown that Ri can be written as:

R _(i) =y(| g |)·η_(i)(γ)  [8]

wherein γ is defined by:

$\begin{matrix} {{\gamma \equiv {\cos \mspace{11mu} \left( {{\angle \; \overset{\_}{n}},{\Delta \; \overset{\_}{d}}} \right)}} = \frac{\left( {{\overset{\_}{g} \cdot \Delta}\; \overset{\_}{d}} \right)}{\sqrt{1 + {\overset{\_}{g}}^{2}}}} & \lbrack 9\rbrack \end{matrix}$

wherein n denotes a unit vector that is normal (perpendicular) to the sample surface at the irradiation point, and Δ d unit vector along the line connecting the two side detectors. The term ( g·Δ d) denotes a scalar product of the two vectors.

It can be shown that the gradient g is given by:

$\begin{matrix} {{{{\overset{\_}{g}} = {y^{- 1}\left( \frac{R_{1}}{V_{1}\left( {r\;}_{1_{2}} \right)} \right)}},{\left( {{\overset{\_}{g} \cdot \Delta}\; \overset{\_}{d}} \right) = {{F^{- 1}\left( r_{1_{2}} \right)} \cdot \sqrt{1 + {\overset{\_}{g}}^{2}}}}}{wherein}} & \left\lbrack 1_{0} \right\rbrack \\ {{r_{1_{2}} \equiv \frac{R_{1}}{R_{2}}} = {\left. {\frac{\eta_{1}(\gamma)}{\eta_{2}(\gamma)} \equiv {F(\gamma)}}\Rightarrow\gamma \right. = {F^{- 1}\left( r_{1_{2}} \right)}}} & \left\lbrack 1_{1} \right\rbrack \\ {R_{1} = {{{y\left( {\overset{\_}{g}} \right)} \cdot {\eta_{1}\left( {F^{- 1}\left( r_{1_{2}} \right)} \right)}} = {{y\left( {\overset{\_}{g}} \right)} \cdot {V_{1}\left( r_{1_{2}} \right)}}}} & \left\lbrack 1_{2} \right\rbrack \end{matrix}$

In some embodiments, processor 38 calculates the two components of g from Equation [10]. The functions F−1 and V1 depend on ω (the apex angle of the conical sector captured by the top detector). Typically, processor 38 holds predefined tables of values of these functions, and uses the tables to evaluate the functions when calculating g.

FIG. 5 is a graph showing functions F−1 and V1 used in calculating a height gradient map, in accordance with an example embodiment of the present invention. The top graph in the figure shows function V1 for various values of w, and the bottom graph shows function F−1 for different values of w. In alternative embodiments, e.g., for other detector geometries, any other suitable functions can be used.

In some embodiments, processor 38 calculates one component of the height gradient g that is along the line connecting the two side detectors D1 and D2, and another component of the gradient that is perpendicular to this line. The two components are denoted g_(d) and g_(d⊥), respectively, and are given by:

g _(d)=( g ·Δ d ), g _(d)⊥=±√{square root over (| g |² −g _(d) ²)}  [13]

Note that the perpendicular gradient component g_(d⊥) is ambiguous, i.e., has two solutions that are theoretically possible. One possible way to resolve this ambiguity is to use the integrability property of gradient functions. Generally, the integral of a gradient function over a closed loop is zero:

C=

_(S)( g ·d s )=0  [14]

wherein S may denote any closed loop path on the sample surface. By choosing a rectangular path with two sides parallel with g_(d) and two sides parallel with g_(d⊥), the requirement of Equation [14] can be written as:

C=∫g _(d) ·dy−∫g _(d⊥) ·dx=0  [15]

From Equation [15] it can be seen that

∫g _(d) ·dy>0

g _(d⊥)>0  [16]

In some embodiments, processor 38 tests both hypotheses (both the positive value and the negative values of g_(d⊥) in Equation [13]) in the test of Equations [15] and [16]. The hypothesis for which the integral of Equation [15] is closer to zero is chosen as the correct value of g_(d⊥).

The above-described ambiguity resolution test may not function properly when the height profile slope is parallel to the line connecting detectors D1 and D2. One possible solution is to position sample 22 such that its features are oriented obliquely relative to the line connecting the detectors. In an example embodiment, the sample is placed such that its axes are at a 45° angle (in the x-y plane) relative to the line connecting the detectors.

After computing the two components of gradient g at each irradiation point on the sample surface, processor 38 integrates the gradient in two dimensions to reconstruct the height map H of the sample. In practice, however, the computed gradient components may not be readily integrable, because they are often approximate and deviate from an ideal gradient function. Thus, the task of integrating the gradient can be regarded as the task of finding a two-dimensional scalar map whose two-dimensional gradient is as close as possible to the computed gradient. In some embodiments, processor 38 finds such a scalar map and outputs it as the reconstructed height map of the sample.

Various methods for fitting a scalar map to a given gradient map are known in the art, and any such method can be used by processor 38. An example method is described by Frankot and Chellappa, in “A Method for Enforcing Integrability in Shape from Shading Algorithms,” IEEE Transactions on Pattern Analysis and Machine Intelligence, Volume 10, No. 4, July, 1988, pages 439-451. According to this article, the height map is calculated by:

$\begin{matrix} {{F_{H}(\omega)} = \frac{{{- {j\omega}_{x}}F_{gx}} - {{j\omega}_{y}F_{gy}}}{\omega_{x}^{2} + \omega_{y}^{2}}} & \left\lbrack 1_{7} \right\rbrack \end{matrix}$

wherein F_(H)(ω) denotes the Fourier transform of the height map H, and F_(gx) and F_(gy) denote the Fourier transforms of the gradient components.

3D Mapping Method Description

FIG. 6 is a flow chart that schematically illustrates a method for 3D mapping of a sample, e.g. wafer sample 22 shown in FIG. 1, carried out by an inspection, metrology or review system, e.g. system 20 shown in FIG. 1, in accordance with an embodiment of the present invention. The method begins with system 20 scanning sample 22 with a beam of Primary Electrons (PE), at a scanning step 60. During the scan, detectors 32A . . . 32C detect the Secondary Electrons (SE) that are emitted from the sample for each irradiated point on the sample surface, at a detection step 64. Digital representations of the detector signals are provided to processor 38 of mapping unit 36 via interface 37.

Processor 38 produces multiple SEM images of the sample, one image per each detector. The image of a given detector comprises a two-dimensional array of values that indicate the SE yield captured by that detector from the various irradiated points on the sample surface. In the example configuration of FIG. 1, processor 38 produces three images corresponding to detectors 32A . . . 32C (the top detector plus two side detectors). Processor 38 uses these images to calculate the 3D height map of sample 22, taking into account and compensating for the types of material making up the sample surface.

In some embodiments, processor 38 divides the sample surface into segments depending on the surface material, at a segmentation step 68. Each segment comprises the points on the sample surface that are made-up of a respective material. For example, one segment may comprise the locations on the sample surface that are made-up of Silicon, and another segment may comprise the locations on the sample surface that are made-up of metal conductors. Processor 38 may use any suitable image processing scheme for carrying out this segmentation. The processor may perform the segmentation based on any single image or based on multiple images. In one embodiment, the processor uses the image of top detector 32A for this purpose.

For each type of material, processor 38 identifies one or more regions on the sample surface that are substantially horizontal, at a region identification step 72. Processor 38 may identify the horizontal regions in various ways. In an example embodiment, most of the sample surface is horizontal, with the exception of feature edges that can be detected by processing one or more of the SEM images produced by the detectors. Processor 38 may identify edges in one of the images, and segment the image using the identified edges. The processor may differentiate between horizontal regions made of different materials based on the measured electron yield in each segment. Typically, although not necessarily, the processor uses the image of top detector 32A for this purpose.

For each type of material, processor 38 uses one or more points in the horizontal regions of this material to estimate EiH, as explained above with respect to Equation [6]. The processor stores the estimated EiH of each material type for later use in calibration.

For each irradiated point on the sample surface, processor 38 calculates the gradient g of the height map based on the corresponding image points in the multiple images. In some embodiments, processor 38 calculates the reflectance functions Ri and calibrates them so as to factor out the type of material using the pre-calculated EiH values, at a reflectance calculation step 76. Processor 38 may calculate the reflectance functions for a given irradiation point by: (i) identifying the type of material at the given irradiation point, and (ii) normalizing the reflectance functions Ri for the given irradiation point using the EiH value of the identified material type.

Processor 38 then calculates the gradient map g from the normalized reflectance functions Ri, at a gradient calculation step 80. The calculation may follow, for example, the process of Equations [8]-[13] above. At this stage, processor 38 has a gradient map of the sample that is unaffected by the different material types. Processor 38 now derives the height map H of the sample from the gradient map, at a height map derivation step 84. The derivation may follow, for example, the process of Equations [14]-[17] above. The height map is then provided as output. In some embodiments the height map can be presented to an operator using a suitable Graphical User Interface (GUI). Additionally or alternatively, the height map can be provided to another system or application for subsequent processing, e.g., for measuring Critical Dimensions (CD) of the sample or for Defect Review (DR).

The embodiments described herein refer to calibration of the signals produced by the multiple detectors in order to factor-out the effect of the multiple materials making up the sample surface. In alternative embodiments, however, the disclosed calibration schemes can be applied to any suitable direct or indirect output of the detectors, such as to the images produced by processor 38 from the detector signals.

FIG. 7 is a flow chart that schematically illustrates a method for 3D mapping of a sample, in accordance with an alternative embodiment of the present invention. The method of FIG. 7 is used in conjunction with the four side detector configuration of FIG. 2 above. In the present example, the method begins with processor 38 selecting pairs of side detectors, at a pairing step 90. Typically, the processor selects pairs of adjacent side detectors, e.g., D1+D2 and D3+D4.

Processor 38 combines the outputs (images) produced by the side detectors in each pair, at a pair combining step 94. In an embodiment, processor 38 repeats the pairing and combining process for different pairs of side detectors, at a re-pairing step 98. For example, processor 38 may initially (step 90) pair detectors D1+D2 and D3+D4, and subsequently (step 98) pair detectors D1+D4 and D2+D3.

Processor 38 sums the results of the two pairing operations, at a summation step 102, to form a single composite image. Processor 38 then processes this single image to produce a 3D height map of the sample, at a processing step 106. This processing may use, for example, the method of FIG. 6 above.

FIG. 8 illustrates a diagrammatic representation of a machine in the exemplary form of a computer system 800 within which a set of instructions, for causing the machine to perform any one or more of the methodologies discussed herein, may be executed. In alternative embodiments, the machine may be connected (e.g., networked) to other machines in a local area network (LAN), an intranet, an extranet, or the Internet. The machine may operate in the capacity of a server or a client machine in a client-server network environment, or as a peer machine in a peer-to-peer (or distributed) network environment. The machine may be a personal computer (PC), a tablet PC, a set-top box (STB), a Personal Digital Assistant (PDA), a cellular telephone, a web appliance, a server, a network router, switch or bridge, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine. Further, while only a single machine is illustrated, the term “machine” shall also be taken to include any collection of machines that individually or jointly execute a set (or multiple sets) of instructions to perform any one or more of the methodologies discussed herein. In one embodiment, computer system 800 may be representative of a server, such as server 102, running image converter 110.

The exemplary computer system 800 includes a processing device 802, a main memory 804 (e.g., read-only memory (ROM), flash memory, dynamic random access memory (DRAM) (such as synchronous DRAM (SDRAM) or Rambus DRAM (RDRAM), etc.), a static memory 806 (e.g., flash memory, static random access memory (SRAM), etc.), and a data storage device 818, which communicate with each other via a bus 830. Any of the signals provided over various buses described herein may be time multiplexed with other signals and provided over one or more common buses. Additionally, the interconnection between circuit components or blocks may be shown as buses or as single signal lines. Each of the buses may alternatively be one or more single signal lines and each of the single signal lines may alternatively be buses.

Processing device 802 represents one or more general-purpose processing devices such as a microprocessor, central processing unit, or the like. More particularly, the processing device may be complex instruction set computing (CISC) microprocessor, reduced instruction set computer (RISC) microprocessor, very long instruction word (VLIW) microprocessor, or processor implementing other instruction sets, or processors implementing a combination of instruction sets. Processing device 802 may also be one or more special-purpose processing devices such as an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a digital signal processor (DSP), network processor, or the like. The processing device 802 is configured to execute processing logic 826 for performing the operations and steps discussed herein.

The computer system 800 may further include a network interface device 808. The computer system 800 also may include a video display unit 810 (e.g., a liquid crystal display (LCD) or a cathode ray tube (CRT)), an alphanumeric input device 812 (e.g., a keyboard), a cursor control device 814 (e.g., a mouse), and a signal generation device 816 (e.g., a speaker).

The data storage device 818 may include a machine-readable storage medium 828, on which is stored one or more set of instructions 822 (e.g., software) embodying any one or more of the methodologies of functions described herein. The instructions 822 may also reside, completely or at least partially, within the main memory 804 and/or within the processing device 802 during execution thereof by the computer system 800; the main memory 804 and the processing device 802 also constituting machine-readable storage media. The instructions 822 may further be transmitted or received over a network 820 via the network interface device 808.

While the machine-readable storage medium 828 is shown in an exemplary embodiment to be a single medium, the term “machine-readable storage medium” should be taken to include a single medium or multiple media (e.g., a centralized or distributed database, and/or associated caches and servers) that store the one or more sets of instructions. A machine-readable medium includes any mechanism for storing information in a form (e.g., software, processing application) readable by a machine (e.g., a computer). The machine-readable medium may include, but is not limited to, magnetic storage medium (e.g., floppy diskette); optical storage medium (e.g., CD-ROM); magneto-optical storage medium; read-only memory (ROM); random-access memory (RAM); erasable programmable memory (e.g., EPROM and EEPROM); flash memory; or another type of medium suitable for storing electronic instructions.

The preceding description sets forth numerous specific details such as examples of specific systems, components, methods, and so forth, in order to provide a good understanding of several embodiments of the present invention. It will be apparent to one skilled in the art, however, that at least some embodiments of the present invention may be practiced without these specific details. In other instances, well-known components or methods are not described in detail or are presented in simple block diagram format in order to avoid unnecessarily obscuring the present invention. Thus, the specific details set forth are merely exemplary. Particular implementations may vary from these exemplary details and still be contemplated to be within the scope of the present invention.

Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. In addition, the term “or” is intended to mean an inclusive “or” rather than an exclusive “or.”

Although the operations of the methods herein are shown and described in a particular order, the order of the operations of each method may be altered so that certain operations may be performed in an inverse order or so that certain operation may be performed, at least in part, concurrently with other operations. In another embodiment, instructions or sub-operations of distinct operations may be in an intermittent and/or alternating manner.

Although the embodiments described herein mainly address inspection of semiconductor wafers, the methods and systems described herein can also be used in other applications, such as in inspection of masks.

It will thus be appreciated that the embodiments described above are cited by way of example, and that the present invention is not limited to what has been particularly shown and described hereinabove. Rather, the scope of the present invention includes both combinations and sub-combinations of the various features described hereinabove, as well as variations and modifications thereof which would occur to persons skilled in the art upon reading the foregoing description and which are not disclosed in the prior art. Documents incorporated by reference in the present patent application are to be considered an integral part of the application except that to the extent any terms are defined in these incorporated documents in a manner that conflicts with the definitions made explicitly or implicitly in the present specification, only the definitions in the present specification should be considered. 

1. A method, comprising: irradiating a surface of a sample, which is made-up of multiple types of materials, with a beam of primary electrons; detecting emitted electrons that are emitted from the irradiated sample, using multiple detectors that are positioned at respective different positions relative to the sample, so as to produce respective detector outputs; computing calibration factors to compensate for variations in emitted electron yield among the types of the materials; applying the calibration factors to the detector outputs; and calculating a three-dimensional topographical model of the surface based on the detector outputs to which the calibration factors are applied.
 2. The method according to claim 1, wherein the detectors comprise a top detector that is capturing electrons emitted perpendicularly to the surface of the sample, and two or more side detectors capturing electrons emitted at oblique angles relative to the surface of the sample.
 3. The method according to claim 1, wherein calculating the three-dimensional topographical model comprises estimating height gradients at multiple points on the surface, and integrating the height gradients to produce the three-dimensional topographical model.
 4. The method according to claim 3, wherein estimating the height gradients comprises defining, for a given point on the surface, a set of equations that express the detector outputs as a function of respective reflectance functions, and deriving a height gradient at the given point by solving the set of the equations.
 5. The method according to claim 4, and comprising evaluating a reflectance function of a given detector by integrating an angular distribution of the emitted electron yield over a range of angles captured by the given detector.
 6. The method according to claim 3, wherein estimating the height gradients comprises resolving an ambiguity in a component of the height gradients by applying a criterion that requires an integral of the height gradients over a closed loop path on the surface to be zero.
 7. The method according to claim 1, wherein applying the calibration factors comprises normalizing a reflectance function for a given detector, which is estimated at a point on the surface that is made-up of a material type, using a calibration factor computed for the material type.
 8. The method according to claim 1, wherein the detectors comprise a top detector positioned perpendicularly above a plane of the sample, and four side detectors positioned at oblique angles relative to the plane of the sample, wherein detecting the emitted electrons comprises combining the detector outputs of selected pairs of the side detectors, and wherein calculating the three-dimensional topographical model comprises computing the model based on the combined detector outputs.
 9. An apparatus, comprising: an electron source, which is configured to irradiate a surface of a sample, which is made-up of multiple types of materials, with a beam of primary electrons; multiple detectors, which are positioned at respective different positions relative to the sample and are configured to detect emitted electrons that are emitted from the irradiated sample, so as to produce respective detector outputs; and a processor, which is configured to compute calibration factors to compensate for variations in emitted electron yield among the types of the materials, to apply the calibration factors to the detector outputs, and to calculate a three-dimensional topographical model of the surface based on the detector outputs to which the calibration factors are applied.
 10. The apparatus according to claim 9, wherein the detectors comprise a top detector that is capturing electrons emitted perpendicularly to the surface of the sample, and two or more side detectors capturing electrons emitted at oblique angles relative to the surface of the sample.
 11. The apparatus according to claim 9, wherein the processor is configured to calculate the three-dimensional topographical model by estimating height gradients at multiple points on the surface, and integrating the height gradients to produce the three-dimensional topographical model.
 12. The apparatus according to claim 11, wherein the processor is configured to define, for a given point on the surface, a set of equations that express the detector outputs as a function of respective reflectance functions, and to derive a height gradient at the given point by solving the set of the equations.
 13. The apparatus according to claim 12, wherein the processor is configured to evaluate a reflectance function of a given detector by integrating an angular distribution of the emitted electron yield over a range of angles captured by the given detector.
 14. The apparatus according to claim 11, wherein the processor is configured to resolve an ambiguity in a component of the height gradients by applying a criterion that requires an integral of the height gradients over a closed loop path on the surface to be zero.
 15. The apparatus according to claim 9, wherein the processor is configured to apply the calibration factors by normalizing a reflectance function for a given detector, which is estimated at a point on the surface that is made-up of a material type, using a calibration factor computed for the material type.
 16. The apparatus according to claim 9, wherein the detectors comprise a top detector positioned perpendicularly above a plane of the sample, and four side detectors positioned at oblique angles relative to the plane of the sample, wherein the processor is configured to combine the detector outputs of selected pairs of the side detectors, and to calculate the three-dimensional topographical model based on the combined detector outputs.
 17. An apparatus, comprising: an interface, which is configured to receive multiple detector outputs from respective detectors positioned at respective different positions relative to a sample, which is made-up of multiple types of materials, wherein the detector outputs are indicative of emitted electrons that are emitted from the sample in response to irradiation of the sample by a beam of primary electrons; and a processor, which is configured to compute calibration factors to compensate for variations in emitted electron yield among the types of the materials, to apply the calibration factors to the detector outputs, and to calculate a three-dimensional topographical model of the surface based on the detector outputs to which the calibration factors are applied.
 18. A computer software product, the product comprising a tangible non-transitory computer-readable medium, in which program instructions are stored, which instructions, when read by a computer, cause the computer to receive multiple detector outputs from respective detectors positioned at respective different positions relative to a sample, which is made-up of multiple types of materials, wherein the detector outputs are indicative of emitted electrons that are emitted from the sample in response to irradiation of the sample by a beam of primary electrons, to compute calibration factors to compensate for variations in emitted electron yield among the types of the materials, to apply the calibration factors to the detector outputs, and to calculate a three-dimensional topographical model of the surface based on the detector outputs to which the calibration factors are applied. 